package com.ruicar.afs.cloud.afscase.channel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruicar.afs.cloud.afscase.channel.condition.DrawerPartyCondition;
import com.ruicar.afs.cloud.afscase.channel.entity.DrawerParty;
import com.ruicar.afs.cloud.afscase.channel.vo.DrawerPartyVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @author: sang jian
 * @date: 2020/5/25 14:16
 * @description:
 */
public interface DrawerPartyMapper extends BaseMapper<DrawerParty> {

    ArrayList<DrawerPartyVo> getCarNameList(@Param("query") DrawerPartyCondition condition);

    IPage<DrawerPartyVo> getDrawerPartyInfo(Page page, @Param("query") DrawerPartyCondition condition);

    ArrayList<DrawerPartyVo> getChannelInfo(@Param("query") DrawerPartyCondition condition);


    int disableDrawerParty(@Param("id") Long id);

    ArrayList<DrawerPartyVo> getDirectCarDealerByChannelId(@Param("id") String id);

    ArrayList<DrawerPartyVo> getCommonCarDealerByChannelId(@Param("id") String id);

    String getChannelNameByChannelId(@Param("id") String id);

    ArrayList<DrawerParty> getDrawerPartyByChannel(@Param("query") DrawerPartyCondition condition);
}
